public class ForDemo04 {
    public static void main(String[] args) {

        // 重复执行某个代码
        for (int i = 0; i < 10; i++) {
            System.out.println("Hello World");
        }


        int k = 0;
        while (k < 5) {
            System.out.println("哈哈");
            k++;
        }

    }
}
